import request from '@/utils/request'

export function getInfo(query) {
  return request({
    url: '/purchase_detail/page',
    method: 'get',
    params: query
  })
}

export function deleteAll() {
  return request({
    url: '/purchase_detail/all',
    method: 'delete'
  })
}

export function impData(file) {
  return request({
    url: '/purchase_detail/impPurchaseDetailData',
    method: 'post',
    data: file
  })
}
